<style>
	.fomr-import{
		margin-left: 250px;
	}
	.note{
		margin: 10px 0;
	}
	.note .cnt{
		padding: 10px;
		border: 1px solid #999;
		background: #f5f5f5;
		font-size: 14px;	
	}

</style>
<div class="fomr-import">
	<div class="note" id="content-load">
		<div class="cnt">Load dữ liệu ở đây</div>
	</div>
	<form id='file-import' action="" method="post">
		<?php
              $linkSubmit =  $this->baseUrl($this->currentController . '/import-exel');
        ?>
		<input type="file" name="fileexel">
		<input type="submit" value="Submit">
	</form>
</div>



<script type="text/javascript">
	//Khai bao ten cua form
	var formID = '#file-import';
	//Khai bao ten cua vung hien du lieu tra ve
	var formMessage = '#content-load';
	var options = {
				target: formMessage,
				//dataType: "json", 
				//success: processData,
				};
	$(document).ready(function(){
		
		$(formMessage).ajaxSend(function(){
				$(formMessage).removeClass().addClass('loading').html('<img src="<?php echo $this->imgUrl . '/ajax-loader.gif';?>" alt="loading" />').fadeIn();
		});
		$(formID).submit(function(){
				$(this).ajaxSubmit(options);
				return false;
		});
	});
</script>
